#ifndef GPSPARSER_H
#define GPSPARSER_H

#include <QObject>
#include <QTimer>

class GpsParser : public QObject
{
    Q_OBJECT
public:
    explicit GpsParser(QObject *parent = nullptr);

signals:
    void newPosition(double lng, double lat);

public slots:
    void startSimulation();
    void stopSimulation();

private:
    QTimer timer;
    double baseLng = 116.3975;  // 初始经度（天安门）
    double baseLat = 39.9087;   // 初始纬度
};

#endif // GPSPARSER_H
